﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Model
{
	public class Author:BaseId
	{
		[SqlSugar.SugarColumn(ColumnDataType = "nvarchar(20)")]
		public string? Name { get; set; }

		[SqlSugar.SugarColumn(ColumnDataType = "varchar(50)")]
		public string? Password { get; set; } // 密码应该是私有的，不对外公开

		[SqlSugar.SugarColumn(ColumnDataType = "varchar(50)")]
		public string? UserName { get; set; }

		public int RoleId { get; set; }

		[SqlSugar.SugarColumn(IsIgnore = true)]
		public Role? Role { get; set; }

    }
}
